import request from '@api/request';
import { HttpUrl } from '@api/httpUrl';

// 注册检查邮箱是否使用
export function checkEmail(email: string) {
    return request.get(HttpUrl.checkEmail, { params: { email } });
}

// 发送邮箱验证码
export function sendEmailAuthCode(email: string) {
    return request.get(HttpUrl.sendEmailAuthCode, { params: { email } });
}

// 找回密码
export function findPassword(email: string, ) {
    return request.post(HttpUrl.findPassword, { email });
}